<datasource-http-settings current="ctrl.current" suggest-url="http://localhost:9090">
</datasource-http-settings>

<div class="gf-form-group">
  <div class="gf-form-inline">
    <div class="gf-form">
      <span class="gf-form-label width-8">Scrape 间隔</span>
      <input type="text" class="gf-form-input width-8" ng-model="ctrl.current.jsonData.timeInterval" spellcheck='false' placeholder="15s"></input>
      <info-popover mode="right-absolute">
        将其设置为 Prometheus 配置文件中定义的全局 scrape 间隔。这会被用作 Prometheus 步长查询参数的下限。
      </info-popover>
    </div>
  </div>

  <div class="gf-form-inline">
    <div class="gf-form">
      <span class="gf-form-label width-8">查询超时</span>
      <input type="text" class="gf-form-input width-8" ng-model="ctrl.current.jsonData.queryTimeout" spellcheck='false' placeholder="60s"></input>
      <info-popover mode="right-absolute">
        设置 Prometheus 查询超时。
      </info-popover>
    </div>
  </div>

  <div class="gf-form">
    <label class="gf-form-label width-8">HTTP 方法</label>
    <div class="gf-form-select-wrapper width-8 gf-form-select-wrapper--has-help-icon">
      <select class="gf-form-input" ng-model="ctrl.current.jsonData.httpMethod" ng-options="method for method in ['GET', 'POST']"></select>
      <info-popover mode="right-absolute">
        制定 HTTP 方法以查询 Prometheus。（POST 方法仅适用于 Prometheus >= v2.1.0）
      </info-popover>
    </div>
  </div>
</div>

